public class WashMachine {
    //类与对象

    //属性
    public String name;
    public String brand;
    public double price;

    //方法
    public void wash(){
        System.out.println("洗衣方法");
    }
    public void dry(){
        System.out.println("甩干方法");
    }
    public void setTime(){
        System.out.println("定时功能方法");
    }
}
